package com.grass.appointment.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import com.androidx.p013lv.base.view.StatusControlLayout;
import com.grass.appointment.C2693BR;
import com.grass.appointment.C2694R;
import com.grass.appointment.activity.CitySelectActivity;
import com.grass.appointment.generated.callback.OnClickListener;
import com.grass.appointment.view.SideBar;

public class ActivityCitySelectLayoutBindingImpl extends ActivityCitySelectLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback16;
    private long mDirtyFlags;
    private final LinearLayout mboundView0;
    private final TextView mboundView1;
    private final TextView mboundView6;

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        return false;
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C2694R.C2697id.toolbar, 7);
        sViewsWithIds.put(C2694R.C2697id.search_city_edit, 8);
    }

    public ActivityCitySelectLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 9, sIncludes, sViewsWithIds));
    }

    private ActivityCitySelectLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 0, (EditText) objArr[8], (ListView) objArr[4], (SideBar) objArr[3], (StatusControlLayout) objArr[5], (Toolbar) objArr[7], (ListView) objArr[2]);
        this.mDirtyFlags = -1;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.mboundView0 = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[6];
        this.mboundView6 = textView2;
        textView2.setTag(null);
        this.searchCityLv.setTag(null);
        this.sideBar.setTag(null);
        this.status.setTag(null);
        this.totalCityLv.setTag(null);
        setRootTag(view);
        this.mCallback16 = new OnClickListener(this, 1);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 8;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C2693BR.status == i) {
            setStatus((Integer) obj);
        } else if (C2693BR.isSearch == i) {
            setIsSearch((Integer) obj);
        } else if (C2693BR.click != i) {
            return false;
        } else {
            setClick((CitySelectActivity.OnClick) obj);
        }
        return true;
    }

    @Override // com.grass.appointment.databinding.ActivityCitySelectLayoutBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C2693BR.status);
        super.requestRebind();
    }

    @Override // com.grass.appointment.databinding.ActivityCitySelectLayoutBinding
    public void setIsSearch(Integer num) {
        this.mIsSearch = num;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C2693BR.isSearch);
        super.requestRebind();
    }

    @Override // com.grass.appointment.databinding.ActivityCitySelectLayoutBinding
    public void setClick(CitySelectActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(C2693BR.click);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        int i;
        int i2;
        int i3;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mStatus;
        Integer num2 = this.mIsSearch;
        CitySelectActivity.OnClick onClick = this.mClick;
        int safeUnbox = (j & 9) != 0 ? ViewDataBinding.safeUnbox(num) : 0;
        long j2 = j & 10;
        if (j2 != 0) {
            int safeUnbox2 = ViewDataBinding.safeUnbox(num2);
            boolean z = true;
            boolean z2 = safeUnbox2 == 0;
            boolean z3 = safeUnbox2 == 1;
            if (safeUnbox2 != 2) {
                z = false;
            }
            if (j2 != 0) {
                j |= z2 ? 512 : 256;
            }
            if ((j & 10) != 0) {
                j |= z3 ? 32 : 16;
            }
            if ((j & 10) != 0) {
                j |= z ? 128 : 64;
            }
            int i4 = z2 ? 0 : 8;
            i = z3 ? 0 : 8;
            i3 = i4;
            i2 = z ? 0 : 8;
        } else {
            i3 = 0;
            i2 = 0;
            i = 0;
        }
        if ((8 & j) != 0) {
            this.mboundView1.setOnClickListener(this.mCallback16);
        }
        if ((10 & j) != 0) {
            this.mboundView6.setVisibility(i2);
            this.searchCityLv.setVisibility(i);
            this.sideBar.setVisibility(i3);
            this.totalCityLv.setVisibility(i3);
        }
        if ((j & 9) != 0) {
            CitySelectActivity.showStatusView(this.status, safeUnbox);
        }
    }

    @Override // com.grass.appointment.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        CitySelectActivity.OnClick onClick = this.mClick;
        if (onClick != null) {
            onClick.btnBack();
        }
    }
}
